$(document).ready(function() {
	loadGridData("");
	$('#resourceGrid').datagrid({
		rownumbers : true,
		singleSelect : true
	});
});

function loadGridData(filter) {
	var prjObjId = $("#prjObjId").val();
	if (prjObjId == undefined)
		return;
	$.getJSON('getResourceDetails.htm?prjObjId=' + prjObjId,
			function(resData) {
				$('#resourceGrid').datagrid({
					data : resData
				});
			});
}

